***** MAIN DO FILE THAT CALLS SEPARATE DO FILES TO PRODUCE THE MODEL STATS AND FIGURES *******

// We first compute statistics for the benchmark model, and prepare mergable files with alternative models to for comparison figures.
cd "BM_FINAL"

// Produce moments from the benchmark, prepare mergable files with alternative models to for comparison figures.
run "..\pol_amry_FINAL.do"

// Producing figures to illustrate the calibration of workers' skills and model implied unemployment.
run "..\Other figs_FINAL.do"

// Reading the simulations, computing additional variables to be used in the regressions below.
run "..\read_sim_FINAL.do"

// Running the regressions for the passthrough of firm-level shocks on worker earnings.
run "..\regs_datalike_FINAL.do"


// This loop converts the model solution output for alternative models of the paper, from txt to dta --with additional moment computations. 
// (To be used later to compare implications for welfare and elasticities.)
foreach x in nominw rho10 rho60 rho90 rho99 sgepsrecal nominwrecalx CD_withinocc  {
 
cd "..\BM_`x'_FINAL"   
run "..\pol_amry_FINAL.do"

} 


cd "BM_FINAL"

// Producing the welfare figures for the benchmark and its comparisons with some alternative models.
run "..\pol_compare FINAL.do"

// Producing the elasticity figures for the benchmark and its comparisons with some alternative models.
run "..\elasticity figures FINAL.do"
